package com.sun;

import android.app.Application;
import android.content.Context;

import androidx.lifecycle.MediatorLiveData;
import androidx.lifecycle.Observer;

import com.sun.dailyprj.androidx.room.RoomAppDatabase;
import com.sun.dailyprj.androidx.room.entity.User;
import com.sun.dailyprj.androidx.viewmodel.VariationViewModel;
import com.sun.dailyprj.util.Logger;

import java.util.ArrayList;
import java.util.List;

public class DemoApplication extends Application{
    public static Application mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;

       /* new VariationViewModel(this).test().observeForever(new Observer<List<User>>(){
            @Override
            public void onChanged(List<User> users) {
                Logger.debug("users:" + users.toString());
            }
        });*/
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        Logger.debug("attachBaseContext() init contentprovider");
    }
}
